]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Hide empty app folders
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 18 Sep 2014 14:33:13 +0000 (15:33 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Sep 2014 13:12:03 +0000 (15:12 +0200)
Trying to open an empty folder currently leaves the parent view in a
rather confused state. While we should look into fixing this in the
future, empty folders are not useful at all to begin with, so hide them.

https://bugzilla.gnome.org/show_bug.cgi?id=736910

js/ui/appDisplay.js

index 8f5c146df4f88ce945d24d25ef076d21623ad7dc..1e940157436b5669b5f4ef98648396ec5836e93f 100644 (file)
@@ -1267,6 +1267,7 @@ const FolderIcon = new Lang.Class({
             addAppId(appInfo.get_id());
         });
 
+        this.actor.visible = this.view.getAllItems().length > 0;
         this.view.loadGrid();
         this.emit('apps-changed');
     },